package com.four.bergain.service;

import com.four.bergain.entity.BargainUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guli.common.utils.R;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author gs
 * @since 2021-12-20
 */
public interface IBargainUserService extends IService<BargainUser> {

    /**
     * 添加砍价人
     * @param baId
     * @param userId
     * @return
     */
    R savePeople(Integer baId, Integer userId);

    /**
     * 查询砍价人是否砍过商品
     * @param baId
     * @param userId
     * @return
     */
    R share(Integer baId, Integer userId);
}
